﻿export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/organizational_management',
    name: 'organizational_management',
    icon: 'crown',
    access: 'normalRouteFilter',
    routes: [
      {
        path: '/organizational_management/user_manager',
        name: 'user_manager',
        access: 'normalRouteFilter',
        component: './UserTableList',
      },
      {
        path: '/organizational_management/dept_manager',
        name: 'dept_manager',
        access: 'normalRouteFilter',
        component: './DeptTableList',
      },
      {
        path: '/organizational_management/professional_manager',
        name: 'professional_manager',
        access: 'normalRouteFilter',
        component: './ProfessionalTableList',
      },
      {
        path: '/organizational_management/classes_manager',
        name: 'classes_manager',
        access: 'normalRouteFilter',
        component: './ClassesTableList',
      },
      {
        path: '/organizational_management/classes_manager/classes_info',
        name: 'classes_info',

        component: './ClassesInfo',
        hideInMenu: true,
      },
      // {
      //   path: '/organizational_management/source_manager',
      //   name: 'source_manager',
      //   access: 'normalRouteFilter',
      //   component: './SourceTableList',
      // },

      // {
      //   path: '/organizational_management/source_manager/source_info',
      //   name: 'source_info',

      //   component: './CourseInfo',
      //   hideInMenu: true,
      // },
      {
        path: '/organizational_management/roles_and_permissions',
        name: 'roles_and_permissions',
        access: 'normalRouteFilter',
        component: './RoleAndRights',
      },
      {
        path: '/organizational_management/user_info',
        name: 'user_info',

        component: './PrivateUserInfo',
      },
      {
        component: './404',
      },
    ],
  },
  {
    path: '/file_management',
    name: 'file_management',
    icon: 'file-text',
    access: 'normalRouteFilter',
    routes: [
      {
        path: '/file_management/document_display',
        name: 'document_display',
        access: 'normalRouteFilter',
        component: './DocumentDisplay',
      },
      {
        path: '/file_management/document_manager',
        name: 'document_manager',
        access: 'normalRouteFilter',
        component: './DocumentManager',
      },
      {
        path: '/file_management/document_upload',
        name: 'document_upload',
        access: 'normalRouteFilter',
        component: './DocumentUpload',
      },
      {
        path: '/file_management/document_memory',
        name: 'document_memory',
        access: 'normalRouteFilter',
        component: './DocumentMemory',
      },
      {
        path: '/file_management/document_approval_process',
        name: 'document_approval_process',
        access: 'normalRouteFilter',
        component: './DocumentApprovalProcess',
      },

      {
        component: './404',
      },
    ],
  },
  {
    path: '/private_file_management',
    name: 'private_file_management',
    icon: 'area-chart',
    access: 'normalRouteFilter',
    routes: [
      {
        path: '/private_file_management/pfile_management',
        name: 'pfile_management',
        access: 'normalRouteFilter',
        component: './PrivateDocumentsManager',
      },
      {
        component: './404',
      },
    ],
  },

  {
    path: '/',
    redirect: '/welcome',
  },
  // { path: '/', component: './Home', layout: false },
  {
    path: '/welcome',
    name: 'welcome',
    component: './DocumentDisplay',
    hideInMenu: true,
  },
  {
    component: './404',
  },
];
